<?php

use yii\db\Migration;
use yii\db\Schema;

/**
 * Class m180404_092911_ADD_FIELD_MEMBER
 */
class m180404_092911_ADD_FIELD_MEMBER extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
         $this->addColumn('{{member}}', 'group_num', Schema::TYPE_STRING. "(64) NULL COMMENT '团号' AFTER role");

         $this->addColumn('{{customer}}', 'seat_area', Schema::TYPE_STRING. "(64) NULL COMMENT '座位区域'");
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        echo "m180404_092911_ADD_FIELD_MEMBER cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180404_092911_ADD_FIELD_MEMBER cannot be reverted.\n";

        return false;
    }
    */
}
